//
//  readRegisterProtocolViewController.m
//  PlayBall
//
//  Created by Jdd‘s macbook on 13-12-24.
//
//

#import "JddReadRegisterProtocolViewController.h"

@interface JddReadRegisterProtocolViewController ()

@end

@implementation JddReadRegisterProtocolViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    //[self.navigationItem setTitle:@"彩票服务条款"];
    UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 30)];
    customLab.backgroundColor = [UIColor clearColor];
    [customLab setText:@"彩票服务条款"];
    customLab.textAlignment = NSTextAlignmentCenter;
    [customLab setTextColor:[UIColor whiteColor]];
    customLab.font = [UIFont systemFontOfSize:19];
    self.navigationItem.titleView = customLab;
    
    //self.navigationItem.hidesBackButton = YES;
    NSString *htmlPath = [[NSBundle mainBundle] pathForResource:@"jddannouncement" ofType:@"html"];
    [self.webpath loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:htmlPath]]];
}

//- (void)back
//{
//    [self.navigationController popViewControllerAnimated:YES];
//}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [MobClick beginLogPageView:@"CaiPiaoFuWuTiaoKuan"];

    [self setJddTabBarHidden:YES];
}
- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [MobClick endLogPageView:@"CaiPiaoFuWuTiaoKuan"];
}
@end
